const chalk = require('chalk')

var connect = require('connect')
var serveStatic = require('serve-static')
const app = connect()

const publicPath = '/'
const port = 9599

app.use(
    publicPath,
    serveStatic('./dist', {
        index: ['sprite-generator.html', '/']
    })
)

app.listen(port, function () {
    console.log(chalk.green(`> Preview at  http://localhost:${port}${publicPath}`))
})
